welcome: # welcome
	@echo "welcome... work together..."

clean: #gradle make clean
	 ./gradlew clean

build:assembleDebugUnitTest assembleDebugAndroidTest #gradle build
	./gradlew assembleDebug

build-release:assembleDebugUnitTest assembleDebugAndroidTest
	./gradlew assembldRelease

move: #move so package to app jni
	rm -rf ../../../android/app/src/main/jniLibs/*
	cp -r ./build/intermediates/cmake/debug/obj/* ../../../android/app/src/main/jniLibs

move-release: # move so package release to app jni
	rm -rf ../../../android/app/src/main/jniLibs/*
	cp -r ./build/intermediates/cmake/release/obj/* ../../../android/app/src/main/jniLibs
### window del
### del ..\\..\\..\\android\\app\\src\\main\\jniLibs\\*

### window move...
### xcopy .\\build\\intermediates\\cmake\\debug\\obj\\* ..\\..\\..\\android\\app\\src\\main\\jniLibs /E /I /Y

cleanbuild:clean
	make build && make move

cleanbuild-release:clean
	make build-release && make move-release

### debug

assembleDebug: #build debug
	./gradlew assembleDebug

assembleDebugUnitTest:
	./gradlew assembleDebugUnitTest

assembleDebugAndroidTest:
	./gradlew assembleDebugAndroidTest


### release

assembleRelease: #build release
	./gradlew assembleRelease

flutterclean: #make flutter clean
	cd ../../.. && flutter clean

### flutter make
plugin: flutterclean cleanbuild #make flutter
	cd ../../.. && flutter run
